
$(eval $(call add_test_elf_target,test/test_hash_sha256.c,sha256_reference,sha256_reference))

$(eval $(call add_test_elf_target,test/test_hash_sha512.c,sha512_reference,sha512_reference))

$(eval $(call add_test_elf_target,test/test_hash_sha3.c,sha3_reference,sha3_reference))

$(eval $(call add_test_elf_target,test/test_hash_sm3.c,sm3_reference,sm3_reference))

$(eval $(call add_test_elf_target,test/test_block_aes_128.c,aes_reference,aes_128_reference))
$(eval $(call add_test_elf_target,test/test_block_aes_192.c,aes_reference,aes_192_reference))
$(eval $(call add_test_elf_target,test/test_block_aes_256.c,aes_reference,aes_256_reference))
$(eval $(call add_test_elf_target,test/test_block_aes_128.c,aes_ttable,aes_128_ttable))
$(eval $(call add_test_elf_target,test/test_block_aes_192.c,aes_ttable,aes_192_ttable))
$(eval $(call add_test_elf_target,test/test_block_aes_256.c,aes_ttable,aes_256_ttable))

$(eval $(call add_test_elf_target,test/test_block_sm4.c,sm4_reference,sm4_reference))

$(eval $(call add_test_elf_target,test/test_permutation.c,permutation,permutation))

ifeq ($(ZSCRYPTO),1)

$(eval $(call add_test_elf_target,test/test_hash_sha256.c,sha256_zscrypto,sha256_zscrypto))

$(eval $(call add_test_elf_target,test/test_block_sm4.c,sm4_zscrypto,sm4_zscrypto))

ifeq ($(XLEN),32)

$(eval $(call add_test_elf_target,test/test_hash_sha512.c,sha512_zscrypto_rv32,sha512_zscrypto_rv32))

$(eval $(call add_test_elf_target,test/test_hash_sm3.c,sm3_zscrypto_rv32,sm3_zscrypto_rv32))

$(eval $(call add_test_elf_target,test/test_block_aes_128.c,aes_zscrypto_rv32,aes_128_zscrypto_rv32))
$(eval $(call add_test_elf_target,test/test_block_aes_192.c,aes_zscrypto_rv32,aes_192_zscrypto_rv32))
$(eval $(call add_test_elf_target,test/test_block_aes_256.c,aes_zscrypto_rv32,aes_256_zscrypto_rv32))

endif

ifeq ($(XLEN),64)

$(eval $(call add_test_elf_target,test/test_hash_sha512.c,sha512_zscrypto_rv64,sha512_zscrypto_rv64))

$(eval $(call add_test_elf_target,test/test_hash_sm3.c,sm3_zscrypto_rv64,sm3_zscrypto_rv64))

$(eval $(call add_test_elf_target,test/test_block_aes_128.c,aes_zscrypto_rv64,aes_128_zscrypto_rv64))
$(eval $(call add_test_elf_target,test/test_block_aes_192.c,aes_zscrypto_rv64,aes_192_zscrypto_rv64))
$(eval $(call add_test_elf_target,test/test_block_aes_256.c,aes_zscrypto_rv64,aes_256_zscrypto_rv64))

$(eval $(call add_test_elf_target,test/test_hash_sha3.c,sha3_zscrypto_rv64,sha3_zscrypto_rv64))

endif

endif
